import { RouteRecordRaw } from "vue-router";

//主路由数据
export const otherRouter: RouteRecordRaw[] = [
  {
    path: "/",
    redirect: "/index",
  },
  //登录
  {
    path: "/login",
    component: () => import("@/Views/Login/index.vue"),
    meta: {
      title: "登录",
      requiresAuth: false,
    },
  },
  //404
  {
    path: "/404",
    component: () => import("@/Views/404/404.vue"),
    meta: {
      title: "页面未找到",
      requiresAuth: false,
    },
  },
  // 其他
  {
    path: "/:patMatch(.*)*",
    redirect: "/404",
    meta: {
      title: "页面未找到",
      requiresAuth: false,
    },
  },
];
